package com.chenguo.srb.core;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName my_srb
 * @Created chenguo
 * @Version V1.0
 * @Date 2021-08-09
 */
@SpringBootApplication
@ComponentScan({"com.chenguo.srb","com.chenguo.base", "com.chenguo.common"})
@RestController
public class SrbCoreApplication {
    public static void main(String[] args) {
        SpringApplication.run(SrbCoreApplication.class, args);
    }


    @RequestMapping("/hello")
    public String hello(){
        return "Hello";
    }
}
